class Student:
    name = None
    age = None
    city = None

    stuInfoList = []

    def __init__(self, name, age, city):
        try:
            self.name = name
            self.age = age
            self.city = city
            stuInfo = {
                "name": name,
                "age": age,
                "city": city
            }
            self.stuInfoList.append(stuInfo)
            print(f"{self.name}的个人信息录入完成，学生姓名:{name}，年龄：{self.age}，地址：{self.city}")

        except Exception as ex:
            print(ex)


    def stuAllInfo(self) -> object:
        print(self.stuInfoList)


# for stu in range(2):
#     stuName = input("亲，请输入你的姓名：")
#     stuAge = input("亲，请输入你的年龄：")
#     stuCity = input("亲，请输入你所在的城市：")
#     Student(stuName, stuAge, stuCity)
# else:
#     Student("","","").stuAllInfo()